home *** CD-ROM | disk | FTP | other *** search
/ Champak 26 (Anniversary Edition) / Volume 26 [Anniversary Edition] - JOGO DISK .iso / Fight / armadilloknight.swf / scripts / frame_4 / PlaceObject2_79_930 / CLIPACTIONRECORD onClipEvent(load).as < prev   
Text File  |  2006-05-08  |  1KB  |  43 lines

  1. onClipEvent(load){
  2.    function open(port, msg)
  3.    {
  4.       action = "open";
  5.       message = msg;
  6.       portrait.gotoAndStop(port);
  7.       _root.world.player.actionLock = true;
  8.       _root.world.player.stop();
  9.       this._visible = true;
  10.       this._y = targetY;
  11.       this._xscale = 0;
  12.       this._yscale = 0;
  13.    }
  14.    function close()
  15.    {
  16.       _root.world.player.actionLock = false;
  17.       if(_root.world.player.pose == "stand")
  18.       {
  19.          _root.world.player.gotoAndStop("stand");
  20.          _root.world.player.pose = "stand";
  21.       }
  22.       else
  23.       {
  24.          _root.world.player.prevPose = "bleh";
  25.          _root.world.player.pose = "ko";
  26.       }
  27.       this._visible = false;
  28.       this._y = -200;
  29.       action = "done";
  30.       if(_root.world.endBlock.egStart)
  31.       {
  32.          _root.jukebox.gotoAndPlay(2);
  33.          _root.world.endBlock.egStart = false;
  34.       }
  35.       _root.jukebox.snd.setVolume(100);
  36.    }
  37.    action = "none";
  38.    this._visible = false;
  39.    targetY = this._y;
  40.    this._y = -200;
  41.    scaleStep = 10;
  42. }
  43.